<%@page import="entities.Cerita"%>

<% Cerita cerita = (Cerita) request.getAttribute("cerita_edit");%>

<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cerita Unyil.com</title>
<link rel="stylesheet" type="text/css" href="style/view.css" media="all">
<script type="text/javascript" src="js/view.js"></script>

</head>
<body id="main_body" >
	
	<img id="top" src="images/top.png" alt="">
	<div id="form_container">
	
            <h1><a>Untitled Form</a></h1>
            <form id="form_318648" class="appnitro"  method="post" action="ProsesUpdateCerita">
                <div class="form_description">
                    <h2>Form Edit Cerita</h2>
                    <p>pengubahan judul dan isi cerita disini</p>
                    <p><a href="cerita?propinsi=<%=cerita.getPropinsi().getId()%>">Kembali</a></p>
		</div>						
                <ul>			
                    <li id="li_1" >
                        <label class="description" for="judul_cerita">Judul </label>
                        <div>
                            <input id="element_1" name="judul_cerita" class="element text medium" type="text" maxlength="255" value="<%=cerita.getJudul_cerita()%>"/> 
                        </div> 
                    </li>		
                    <li id="li_2" >
                        <label class="description" for="isi_cerita">Isi Cerita </label>
                        <div>
                            <textarea id="element_2" name="isi_cerita" class="element textarea large"><%=cerita.getIsi_cerita()%></textarea> 
                    </div> 
                    </li>
                    <li class="buttons">
                        <input type="hidden" name="form_id" value="318648" />
                        <input type="hidden" name="propinsi" value="<%=cerita.getPropinsi().getId()%>">
                        <input type="hidden" name="cerita" value="<%=cerita.getId()%>">
                        <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
                    </li>
			</ul>
            </form>	
            <div id="footer">
                Generated by <a href="http://www.phpform.org">pForm</a>
            </div>
	</div>
	<img id="bottom" src="images/bottom.png" alt="">     
</body>
</html>